<script language="javascript" src="./include/js/validate.js"></script>
	<div id="nav">
		当前位置: <a href="?action=default">管理首页</a> <span>&gt;</span> 添加分类
	</div>
	<form id="theform" action="" method="post" class="block" enctype="multipart/form-data" onSubmit="return Validator.Validate(this,2);">
	<table summary="" cellpadding="0" cellspacing="0" border="0" width="100%">
		<tr>
		<th style="padding-bottom: 5px; font-size: 12px; font-weight: bold;"><em>*为必填项</em></th>
		<td>&nbsp;</td>
		</tr>
		<tr>
		<th style="width: 7em;"><em>分类名称 *</em></th>
		<td><input name="cname" type="text" id="cname" size="40" maxlength="10" dataType='Require' msg='请填写分类名称' /><div id="cnametips" class="tips">分类名称不超过10个汉字</div></td>
		</tr>
		
		<tr>
		<th><em>上级分类 *<em></th>
		<td><select name="fid" size="1">
		  <option value="0" selected>-顶级分类-</option>
		  <? foreach($cate as $c){?>
		  <option value="<?=$c['cid']?>"><?=$c['cname']?></option>
		  <? }?>
		</select></td>
		</tr>
		
		<tr>
		<th><em>模型样式 *<em></th>
		<td><select name="type" size="1">
		  <option value="0" selected>新闻</option>
		  <option value="1">图片</option>
		</select></td>
		</tr>
		
		<tr>
		<th><em>静态目录 *<em></th>
		<td><input name="path" type="text" id="path" size="20" value="" dataType='Require' msg='请填写静态目录'  /><div id="pathtips" class="tips">填写后将在站点下生成相应目录</div></td>
		</tr>
		
		<tr>
		<th>显示顺序</th>
		<td><input name="displayorder" type="text" id="displayorder" size="2" value="0" /><div id="displayordertips" class="tips">如排序请填写，数值越大越靠后</div></td>
		</tr>
			
		<tr>
		<th>&nbsp;</th>
		<td>
		<button value="true" type="submit" name="cateaddsubmit" class="submit">提交保存</button></td>
		</tr>
	</table>
	</form>